package com.fuyao.cloud.admin.flow.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.flowable.bpmn.model.UserTask;

import java.util.Collections;
import java.util.Set;

@NoArgsConstructor
@Data
public class FlowNodeInfo {
    private String name;
    private String id;

    /**
     * 环节启用字段
     */
    private Set<String> enabledFields = Collections.emptySet();
    /**
     * 环节禁用按钮
     */
    private Set<String> disabledButtons = Collections.emptySet();
    /**
     * 环节启用按钮
     */
    private Set<String> enabledButtons = Collections.emptySet();
    /**
     * 环节禁用字段
     */
    private Set<String> hideFields = Collections.emptySet();
    /**
     * 环节处理人
     */
    private Set<Handler> handlers = Collections.emptySet();

    private boolean loopCharacteristics = false;

    public FlowNodeInfo(UserTask userTask) {
        this.setName(userTask.getName());
        this.setId(userTask.getId());
    }
}
